package com.maxMgmt.Mapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.maxMgmt.Dto.InqTypesDto;

public class InqTypesMapper implements RowMapper{

	@Override
	public Object mapRow(ResultSet rs, int rowNum) throws SQLException {
		
		InqTypesDto inqTypesDto = new InqTypesDto();
		
		inqTypesDto.setInqTypeId(rs.getInt("INQ_TYPE_ID"));
		inqTypesDto.setInqTypeName(rs.getString("INQ_TYPE_NAME"));
		
		return inqTypesDto;
	}

}
